#ifndef PLUGININTERFACE_H
#define PLUGININTERFACE_H

#include <QObject>
#include <QMainWindow>
#include <QString>

// 定义插件接口
class PluginInterface {
public:
    virtual ~PluginInterface() {}
    virtual QWidget* createWindow(QString filepath="",QWidget* parent = nullptr) = 0;
    virtual void deleteSomething()=0;
    virtual QString ChineseName()=0;
};

// 让 Qt 识别接口
#define PluginInterface_iid "com.example.PluginInterface"
Q_DECLARE_INTERFACE(PluginInterface, PluginInterface_iid)

#endif // PLUGININTERFACE_H
